﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="USRegister.ascx.cs" Inherits="Pages_USRegister" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  <link rel="Stylesheet" href="../CSS/CSSRegister.css" type="text/css" />
<asp:MultiView ID="mtvwRegister" runat="server">
        <asp:View ID="vwRegister" runat="server">
        <div class=head>
        <br />
            <div class=head>
            <h1 align=center style="background-color:#00FFFF"> ĐĂNG KÝ THÀNH VIÊN</h1>
            </div>
            <div class=head>
                <div class=head>
                    <div class=left>
                        <asp:Label ID="Label1" runat="server" Text="Email"></asp:Label>
                    </div>
                    <div class=center>
                         <asp:TextBox ID="txtEmail" runat="server" Width="99%" ></asp:TextBox>
                    </div>
                    <div class=right>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ErrorMessage="(*)" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ErrorMessage="Email không hợp lệ" ControlToValidate="txtEmail" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class=head>
                    <div class=left>
                       <asp:Label ID="Label4" runat="server" Text="Mật khẩu"></asp:Label>
                    </div>
                    <div class=center>
                        <asp:TextBox ID="txtMatKhau" runat="server" Width="99%" TextMode="Password"></asp:TextBox>
                    </div>
                    <div class=right>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="(*)" ControlToValidate="txtMatKhau"></asp:RequiredFieldValidator>
                     </div>
                </div>
                <div class=head>
                    <div class=left>
                       <asp:Label ID="Label5" runat="server" Text="Nhập lại mật khẩu"></asp:Label>
                    </div>
                    <div class=center>
                        <asp:TextBox ID="txtMatKhauNL" runat="server" Width="99%" 
                            TextMode="Password"></asp:TextBox>
               
                    </div>
                    <div class=right>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="txtMatKhauNL" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ErrorMessage="Không hợp lệ" 
                            ControlToCompare="txtMatKhau" ControlToValidate="txtMatKhauNL"></asp:CompareValidator>
                     </div>
                </div>
                <div class=head>
                    <div class=left>
                        <asp:Label ID="Label2" runat="server" Text="Họ Tên"></asp:Label>
                    </div>
                    <div class=center>
                         <asp:TextBox ID="txtHoTen" runat="server" Width="99%"></asp:TextBox>  
                    </div>
                    <div class=right>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ErrorMessage="(*)" ControlToValidate="txtHoTen"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class=head>
                    <div class=left>
                         <asp:Label ID="Label3" runat="server" Text="Ngày Sinh"></asp:Label>
                    </div>
                    <div class=center>
                        <asp:TextBox ID="txtNgaySinh" runat="server" Width="99%"></asp:TextBox>
                       <cc1:ToolkitScriptManager ID="ToolkitScripManager1" runat="server" ></cc1:ToolkitScriptManager>
                        <cc1:CalendarExtender ID="txtNgaySinh_CalendarExtender" runat="server" Format = "dd'/'MM'/'yyyy" TargetControlID="txtNgaySinh">
                        </cc1:CalendarExtender>
                    </div>

                    <div class=right>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ErrorMessage="(*)" ControlToValidate="txtNgaySinh"></asp:RequiredFieldValidator>
                    </div>
                </div>

                 <div class=head>
                    <div class=left>
                        <asp:Label ID="Label6" runat="server" Text="Địa chỉ"></asp:Label>
                
                    </div>
                    <div class=center>
                        <asp:TextBox ID="txtDiaChi" runat="server" Width="99%"></asp:TextBox>
                    </div>
                    <div class=right>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ErrorMessage="(*)" ControlToValidate="txtDiaChi"></asp:RequiredFieldValidator>
                     </div>
                </div>

                 <div class=head>
                    <div class=left>
                        <asp:Label ID="Label7" runat="server" Text="Số điện thoại"></asp:Label>
                    </div>
                    <div class=center>
                        <asp:TextBox ID="txtSDT" runat="server" Width="99%"></asp:TextBox>
                    </div>
                    <div class=right></div>
                </div>
            </div>
            <div class=head>
       
            </div>
            <div class=head>
                <div class=btSubmit>
                    <asp:Button ID="Button1" runat="server" Text="Đăng ký" Width="100px" 
                        Height="30px" onclick="Button1_Click" />
                </div>
                <div class="btReset">
                     <input id="Reset1" style="width: 100px; height: 30px;" type="reset" 
                         value="Nhập lại" />
                </div>
            </div>
        </div>
       
        </asp:View>

         <asp:View ID="vwSuccess" runat="server">
            <div style="color:Red;font-weight:bold;text-align:center">
                <h4>Bạn đã đăng ký thành công.</h4>
                <p><a href="Default.aspx">Click link để quay trở lại trang chủ.</a></p>
            </div>
        </asp:View>

        <asp:View ID="vwLogged" runat="server">
             <div style="color:Red;font-weight:bold;text-align:center">
                <h4>Bạn đang ở trạng thái đăng nhập.</h4>
                <p><a href="Logout.aspx">Vui lòng thoát ra để đăng ký.</a></p>
            </div>
        </asp:View>

        </asp:MultiView>